﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Common.Data.Repository;
using Warranty.Data.DataContextStorage;
using Warranty.Model.Model;

namespace Warranty.Data.Repository
{
    public class WarrantyRepository : GenericRepository
    {
        public WarrantyRepository()
            : base(DataContextFactory.GetDataContext())
        {

        }

        public static WarrantyRepository Current { get { return new WarrantyRepository(); } }
        public DbSet<Dealer> Dealers { get { return ((WarrantyEntities)this.DbContext).Dealers; } }
        public DbSet<OrderShipHist> OrderShipHistories { get { return ((WarrantyEntities)this.DbContext).OrderShipHistories; } }
        public DbSet<MessageHistory> MessageHistory { get { return ((WarrantyEntities)this.DbContext).MessageHistory; } }
        public DbSet<WarrantyHistory> WarrantyHistory { get { return ((WarrantyEntities)this.DbContext).WarrantyHistory; } }
        public DbSet<MessageSend> MessageSend { get { return ((WarrantyEntities)this.DbContext).MessageSend; } }
        public DbSet<ResponseSMS> ResponseSMS { get { return ((WarrantyEntities)this.DbContext).ResponseSMS; } }

    }
}
